package com.cy.java.basic;

import java.util.Arrays;

public class HelloWorld {
    public static void main(String[] args) {
//        System.out.println("Hello World!!");
//        for (int i = 0; i < args.length; i++) {
//            System.out.println(args[i]);
//        }
      int a = 2;
      int[] b= {1,2,3,4,5};
      method1(a);
      method2(b);
        System.out.println(a);
        System.out.println(Arrays.toString(b));
    }

    private static void method2(int[] b) { //地址传递
        b[0]=0;
    }

    private static void method1(int a) { //值传递
        a+=10;
    }

}
